#include <stdio.h>
#include <stdlib.h>
#include "operate.h"
#include "computer.h"
#include "mode.h"


/*************************************************************************
 * FuncName: main
 *    Input: None
 *   Output: None
 *  Val-Res: None
 *   Return: 0
 *    Brief: Main program body!
*************************************************************************/
int main(void)
{
    while (1)
    {
        startx();

        char ch;
        printf("请输入1、2 或 q：");
        scanf("%c", &ch);
        getchar();
        while (ch != '1' && ch != '2' && ch != 'q')
        {
            printf("输入错误，请重新输入： ");
            scanf("%c", &ch);
        }

        if (ch == '1')
            mode_mac();
        if (ch == '2')
            mode_mam();
        if (ch == 'q')
            break;
    }

    return 0;
}


/************************ (C) COPYRIGHT HOUTY PRIVATE ********END OF FILE****/

